#ifndef DATABASE_DRIVER_H
#define DATABASE_DRIVER_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QDebug>

class Database_driver
{
public:
    Database_driver();
    void setConnectByName(QString database_path , QString connectionname);
    QSqlDatabase getConnectByName(QString connectionname);
    void insertUser(QSqlDatabase db , const QString count , const QString passward);
    QString findUser_Pssward(QSqlDatabase db , QString count);
};

#endif // DATABASE_DRIVER_H
